package com.netease.examination.service.seller;

import com.netease.examination.dao.seller.GoodsDAO;
import com.netease.examination.model.Goods;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * designed by destiny
 *
 * @author destiny
 *         e-mail destinywk@163.com
 *         github https://github.com/DestinyWang
 *         oschina https://git.oschina.net/destinywk
 * @version JDK 1.8.0_101
 * @since 2017/3/31 00:52
 */
@Service
public class GoodsService {

    @Resource
    private GoodsDAO goodsDAO;

    public Integer insertGoods(Goods goods) {
        return goodsDAO.insertGoods(goods);
    }

    public Goods getById(Long id) {
        return goodsDAO.getById(id);
    }

    public Integer updateById(Goods goods) {
        return goodsDAO.updateGoods(goods);
    }

}
